let start = () => {
    const video = document.getElementById("vjs_container_html5_api");
    if (!video){
        setTimeout(start, 1000)
        return;
    }
    video.muted = true;
    video.load()
    setTimeout(() => {
        video.play()
    }, 1500)
    video.addEventListener("pause", ()=>{
        video.play()
    })
    video.addEventListener('ended', () => {
        console.info("CX：智慧树视频播放完毕,", new Date().toLocaleString());
        chrome.runtime.sendMessage("finished", message => {
        })
        // const videos = document.getElementsByClassName("video");
        // for (let i = 0, l = videos.length; i < l; i++){
        //     if (videos[i].getAttribute("class") === 'clearfix video current_play'){
        //         videos[i + 1].click()
        //         break;
        //     }
        // }
    }, false);
}
start()